package com.webinf.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

import com.webinf.entity.WebInfo;
@Transactional
public interface WebInfoDao extends PagingAndSortingRepository<WebInfo, String> {
	    
	    @Query("select u from WebInfo u where u.userId=:userId order by u.guid desc")
	    public Page<WebInfo> findAll(@Param("userId") String userId,Pageable pageable);
  
} 